package com.github.chain.admin.server.service;

import com.github.chain.admin.common.domain.AdminLogger;
import com.github.chain.admin.common.domain.Menu;
import com.github.chain.admin.common.request.MenuRequest;
import com.github.framework.core.Result;


import java.util.List;
import java.util.Map;
import java.util.TreeMap;

/**
 * @author AIQ
 * @date 2023/5/11
 * @project er-trader
 */
public interface MenuService {

    Result<TreeMap<Long, Menu>> findMenuByUserId(Long userId);

    Result<List<Menu>> roleMenuAuthList(Long id);

    Result<List<Menu>> findMenuList(MenuRequest menuRequest);

    Result<Map<Integer, String>> findMenuListSort(MenuRequest menuRequest);

    Result<Menu> findMenuById(Long id);

    Result saveMenu(MenuRequest menuRequest);

    Result<Menu> findMenuByMenuId(Long id);

    Result<Integer> updateMenu(MenuRequest menuRequest);

    Result<Integer> deleteMenuByMenuId(Long id);
}
